<?php
/*
 * Smarty plugin
 * -------------------------------------------------------------
 * File:     modifier.date.php
 * Type:     modifier
 * Name:     date
 * Purpose:  provide access to regular php date() function
 * -------------------------------------------------------------
 */

function smarty_modifier_date($time, $format='M d, Y') {
	return date($format, $time);
}
$smarty->unregister_modifier('date');
$smarty->register_modifier('date', 'smarty_modifier_date');
